Config Action
constructor(titleSupplier: Supplier<Text>, activeSupplier: Supplier<Boolean>, pressAction: Runnable, decoration: Identifier?, description: Text? = null, background: Identifier? = null)
constructor(titleSupplier: Supplier<Text>, activeSupplier: Supplier<Boolean>, pressAction: Runnable, decoration: Decorated?, description: Text? = null, background: TextureSet? = null)
Parameters
title Supplier
Supplier
active Supplier
Supplier
press Action
Runnable - the action to execute on clicking the button
background
Identifier, nullable - if non-null, will provide a custom background for the widget rendering.
decoration
Decorated, nullable - if non-null, will render a "decoration" next to the widget. These are the typically white/wireframe icons shown next to certain settings like lists.